package cn.xutongxue.gtms.service;

import cn.xutongxue.gtms.entity.User;
import cn.xutongxue.gtms.entity.dto.user.UserQueryRequest;
import cn.xutongxue.gtms.entity.vo.TeacherGuideVo;
import cn.xutongxue.gtms.entity.vo.UserInfoVo;
import cn.xutongxue.gtms.entity.vo.UserVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_user(用户信息表)】的数据库操作Service
* @createDate 2023-08-09 15:46:13
*/
public interface UserService extends MPJBaseService<User> {

    UserInfoVo login(String idNumber, String password, String role);

    UserInfoVo getUserInfoVo(User user);

    Page<UserVo> listUserVoByPage(UserQueryRequest userQueryRequest);

    UserVo getUserVO(User user);

    List<UserVo> getUserVO(List<User> userList);

    Page<TeacherGuideVo> getStudentListByTeacherId(Long teacherId, Integer current, Integer size);

    Page<User> getAllTeacher(Integer current, Integer size);

    Page<User> getAllStudent(Integer current, Integer size);
}
